window.WMDA_SDK_CONFIG = {
  api_v: 1,
  sdk_v: 0.1,
  mode: 'report',
  appid: 0,
  key: '0',
  project_id: '0',
  cookie_domain: document.domain,
  cate_id: '',
  page_extra: [
    {
      key: '',
      value: ''
    }
  ],
  user_extra: [
    {
      key: '',
      value: ''
    }
  ],
  channel: '',
  SPA_HASH: true,
  getUserId: function () {}
}

const wmda = document.createElement('script')
wmda.type = 'text/javascript'
wmda.async = true
wmda.src =
  ('https:' === document.location.protocol ? 'https://' : 'http://') +
  'j1.58cdn.com.cn/wmda/js/statistic.js'
const s: any = document.getElementsByTagName('script')[0]
s.parentNode.insertBefore(wmda, s)
